package com.wpam.scrabble.mobile.messages;

import com.wpam.scrabble.mobile.ScoreBoard;

public class NewTurnMessage extends Message {

	private static final long serialVersionUID = 1L;

	private ScoreBoard scoreboard_;
	private boolean gameEnded_;
	
	public NewTurnMessage(ScoreBoard scoreboard, boolean gameEnded) {
		
		super(Message.NEW_TURN);
		this.scoreboard_ = scoreboard;
		this.gameEnded_ = gameEnded;
	}

	public String getCurrentPlayer() {
		return scoreboard_.getCurrentPlayer();
	}

	public ScoreBoard getScoreBoard() {
		return scoreboard_;
	}

	public boolean isGameEnded() {
		return gameEnded_;
	}
	
}
